import instance from "@/utils/request";
import exp from "constants";

// 获取详情页数据
export function getDetailsData(data:{
  proid:string
}){
  return instance({
    url:'/pro/detail/'+data.proid,
    method:'get',
  })
}

// 加入购物车
export function addCartApi(data:{
  userid:string,
  proid:string,
  num:string
}){
  return instance({
    url:'/cart/add',
    method:'post',
    data
  })
}